package com.zts.base.resource;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * Created by zhangkh on 16/5/30.
 */
public class ListResource<T extends BaseResource> extends BaseResource {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long total;

    private long count=0;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<T> items;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }
}
